<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改变更通讯费记录')" />
    <th:block th:include="include :: datetimepicker-css" />
    </head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-terminal.changeFeeRecord-edit" th:object="${changeFeeRecord}">
            <input name="sysId" th:field="*{sysId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">系统编号：</label>
                <div class="col-sm-8">
                    <input name="sysId" th:field="*{sysId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">SN编号：</label>
                <div class="col-sm-8">
                    <input name="machineNum" th:field="*{machineNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端类型：</label>
                <div class="col-sm-8">
                    <select name="posType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">原流量卡费：</label>
                <div class="col-sm-8">
                    <input name="oldSimFee" th:field="*{oldSimFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">流量卡费 (元)：</label>
                <div class="col-sm-8">
                    <input name="nowSimFee" th:field="*{nowSimFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">返现服务商编号：</label>
                <div class="col-sm-8">
                    <input name="returnAgentNum" th:field="*{returnAgentNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">返现服务商名称：</label>
                <div class="col-sm-8">
                    <input name="returnAgentName" th:field="*{returnAgentName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">激活状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="activateStatus" value="">
                        <label th:for="activateStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户编号：</label>
                <div class="col-sm-8">
                    <input name="merno" th:field="*{merno}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户名称：</label>
                <div class="col-sm-8">
                    <input name="merName" th:field="*{merName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">录入日期：</label>
                <div class="col-sm-8">
                    <input name="addDate" th:field="*{addDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">收取时间：</label>
                <div class="col-sm-8">
                    <input name="collDate" th:field="*{collDate}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "terminal/hangeFeeRecord";
        $("#form-terminal.changeFeeRecord-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-terminal.changeFeeRecord-edit').serialize());
            }
        }
    </script>
</body>
</html>